package com.aptemo.webetek.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class SportChangedEvent
		extends GwtEvent<BetListChangedEventHandler>
{

	public static final Type<BetListChangedEventHandler>	TYPE	= new GwtEvent.Type<BetListChangedEventHandler>();	;

	private String											msportname;
	private String											msportid;

	public SportChangedEvent(String sportid, String sportname)
	{
		this.msportname = sportname;
		this.msportid = sportid;
	}

	@Override
	protected void dispatch(BetListChangedEventHandler handler)
	{
		handler.onRefresh(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<BetListChangedEventHandler> getAssociatedType()
	{
		return TYPE;
	}

	public String getSportName()
	{
		return msportname;
	}

	public String getSportId()
	{
		return msportid;
	}

}
